<template>
  <div class="layout">
    <div class="aside">
      <div class="logo">
        <img src="../assets/logo.png" alt="" />
        <span>Message</span>
      </div>
      <el-menu
        default-active="2"
        class="el-menu-vertical-demo"
        @open="handleOpen"
        @close="handleClose"
        background-color="#031528"
        text-color="#fff"
        active-text-color="#ffd04b"
      >
        <el-submenu index="1">
          <template slot="title">
            <i class="el-icon-s-tools"></i>
            <span>系统管理</span>
          </template>
          <el-menu-item index="1-1">用户管理</el-menu-item>
          <el-menu-item index="1-2">菜单管理</el-menu-item>
          <el-menu-item index="1-3">角色管理</el-menu-item>
          <el-menu-item index="1-4">部门管理</el-menu-item>
        </el-submenu>
        <el-submenu index="2">
          <template slot="title">
            <i class="el-icon-s-promotion"></i>
            <span>审批管理</span>
          </template>
          <el-menu-item index="2-1">休假申请</el-menu-item>
          <el-menu-item index="2-2">待我审批</el-menu-item>
        </el-submenu>
      </el-menu>
    </div>
    <div class="header"></div>
    <div class="main"></div>
  </div>
</template>

<script>
export default {
  data() {
    return {};
  },
  mounted() {},
  methods: {},
};
</script>

<style scoped lang="scss">
.layout {
  width: 100vw;
  height: 100vh;
  background-color: #edf1f4;
}
.aside {
  width: 200px;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  background-color: #031528;
}
.logo {
  width: 100%;
  height: 45px;
  display: flex;
  align-items: center;
  img {
    width: 32px;
    height: 32px;
    margin-left: 10px;
  }
  span {
    color: #fff;
    margin-left: 20px;
  }
}
.el-menu{
    border-right: none;
}
.header {
  height: 50px;
  line-height: 50px;
  background-color: #fff;
  position: absolute;
  top: 0;
  left: 200px;
  right: 0;
}
.main {
  background-color: #feffff;
  position: absolute;
  top: 50px;
  left: 200px;
  right: 0;
  bottom: 0;
  margin: 30px;
}
</style>
